package com.coderworm.common;

/**
 * @author: coderworm
 * @date: 2025/7/22 14:39
 * @version: 1.0
 * @description:
 */
public class ByteDemo {

    public static void main(String[] args) {
        System.out.println("byte demo");
        System.out.println("byte demo3");
        System.out.println("byte demo4");
        System.out.println("byte demo8");
        System.out.println("byte demo9");
        System.out.println("byte demo10");
        System.out.println("byte demo14");
        System.out.println("byte demo15");
        int a = -8;
        System.out.println(a>>1);
        System.out.println(a>>>1);

       int  initialCapacity = 25535;
        initialCapacity |= (initialCapacity >>>  1);
        initialCapacity |= (initialCapacity >>>  2);
        initialCapacity |= (initialCapacity >>>  4);
        initialCapacity |= (initialCapacity >>>  8);
        initialCapacity |= (initialCapacity >>> 16);
        initialCapacity++;
        System.out.println(initialCapacity);
    }

}
